#ifndef GX_FR_EDITOR_FILE_CONTROL_H
#define GX_FR_EDITOR_FILE_CONTROL_H

#include "Windows/GxWindows.h"
#include "LibGL/GxUI.h"
#include "Windows/GxWinCommonDlg.h"

namespace FinalRendering
{
	namespace Editor
	{
		using GxWinGUI::Form;
		using GxRendering::UI::UIEntry;
		using GxWinGUI::FileDialog;
		using namespace GxLibBasic;

		class FileControl : public Object
		{
		private:
			Form * form;
			UIEntry * ui;
			RefPtr<FileDialog> dlgOpen, dlgSave;	
		public:
			FileControl(Form * parent, UIEntry * ui);
		public:
			bool Save();
			bool SaveAs();
			bool Open();
			bool Close();
			bool New();
			String GetCurrentName();
		};
	}
}

#endif